import request from '@/utils/request'
import data from "../../views/system/dict/data";

// 查询登录日志列表
export function list(data) {
  return request({
    url: '/loginInfo/getForPage',
    method: 'post',
    data: data
  })
}

// 删除登录日志
export function delLogininfor(ids) {
  return request({
    url: '/loginInfo/removeByIds/' + ids,
    method: 'get'
  })
}

// 强制退出登录
export function quit(query) {
  return request({
    url: '/loginInfo/forceQuit',
    method: 'get',
    params: query
  })
}

// 清空登录日志
export function cleanLogininfor() {
  return request({
    url: '/loginInfo/clean',
    method: 'get'
  })
}
